home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '93 / Hacks '93 / Dude NOT! / Readme < prev   
Encoding:
Text File  |  1993-06-18  |  1.5 KB  |  33 lines  |  [TEXT/MPS ]

  1. Dude NOT! - Fix autoremounter network behavior.
  2.  
  3. Mark D. Rustad    93/06/16.
  4.  
  5. This extension (hack) changes the behavior of autoremounter
  6. to never send broadcast echo packets (imagine what that does
  7. to large ethernets or token rings). It is called “Dude NOT!”
  8. because all the trouble is caused by the 'dude' Gestalt selector
  9. function.
  10.  
  11. Installation of this extension will tend to prevent autoremounter
  12. from remounting volumes on very small networks when you plug into
  13. the network after coming out of sleep. Of course, you should
  14. always connect the network BEFORE coming out of sleep to ensure
  15. that a unique AppleTalk address is acquired... So, if you never
  16. use a large network and like to plug a running maching into active
  17. networks, this hack is not for you.
  18.  
  19. This hack also demonstrates the creation of a stand-alone code
  20. resource with it’s own A5 world and no assembly and no _datainit
  21. junk. Of course, I do need to use GCC to do this and a couple inlines,
  22. but I like it, because compilers can generate smaller, faster code
  23. if you use A5 worlds rather than passing global variable pointers
  24. around all over (I wish I had discovered this technique years ago).
  25. You can use the same technique with MPW C if you link with one tiny
  26. assembly routine (provided in the comments later).
  27.  
  28. This hack turned out so simple I didn’t even need any globals, so in
  29. this case things could be simplified by NOT setting up the A5 world,
  30. but then this hack couldn’t demonstrate the efficient, convenient use
  31. of A5 globals in a stand-alone code resource.
  32.  
  33. Because this truly is a hack, it doesn’t have an icon.